package com.hwl.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hwl.cms.pojo.Ad;
import com.hwl.cms.pojo.vo.AdVo;

/**
 * <p>
 * 广告推荐 Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-10-06
 */
public interface AdMapper extends BaseMapper<Ad> {

    /**
     * 获取广告分页列表
     */
    Page<AdVo> selectAdPage(Page<AdVo> objectPage);

    /**
     * 根据标题获取广告
     */
    Ad getAdByTitle(String title);
}
